projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f760538
)
Fix gail_notebook_get_selection_count()
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 10 Aug 2010 02:22:03 +0000
(22:22 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 10 Aug 2010 02:24:24 +0000
(22:24 -0400)
This function should return 0 for empty notebooks. Based on
a patch by Mike Gorse, bug 557263.
modules/other/gail/gailnotebook.c
patch
|
blob
|
history
diff --git
a/modules/other/gail/gailnotebook.c
b/modules/other/gail/gailnotebook.c
index b3edb8cf5f07242a2c611986b13849e1a88d34b0..228641a8ceac190fddf42832f01095cd1fbb6324 100644
(file)
--- a/
modules/other/gail/gailnotebook.c
+++ b/
modules/other/gail/gailnotebook.c
@@
-374,7
+374,7
@@
gail_notebook_get_selection_count (AtkSelection *selection)
return 0;
notebook = GTK_NOTEBOOK (widget);
- if (notebook == NULL)
+ if (notebook == NULL
|| gtk_notebook_get_current_page (notebook) == -1
)
return 0;
else
return 1;